package com.cplsys.iacna.launcher;

import java.lang.reflect.InvocationTargetException;

import javax.swing.SwingUtilities;

import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class IACNALauncher {

	public static void main(String[] args) {
		ConfigurableApplicationContext beans = null;
		String[] contextPaths = new String[] { "spring/applicationContext.xml" };
		beans = new ClassPathXmlApplicationContext(contextPaths);

		Runnable application = beans.getBean(IACNA.class);
		try {
			SwingUtilities.invokeAndWait(application);
		} catch (InterruptedException e) {
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			e.printStackTrace();
		}

	}

}
